package com.tubi.innerclass2;

public class test2innerclass {
    public static void main(String[] args) {

        /*

        私有成员内部类展示
         */
        Outer o = new Outer();
        o.method();

    }
}
class Outer {
    //private 只能在本类中访问
    private class Inner {
        int num = 10;
        public void show() {
            System.out.println("Inner..show");
        }
    }

    public  void method(){ //成员方法
        Inner i = new Inner();
        i.show();
    }
}